package com.graduation.springbootinit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.graduation.springbootinit.model.entity.ShopPart.SizeStock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SizeStockMapper extends BaseMapper<SizeStock> {
    @Select("SELECT * FROM shop_part_size_stock WHERE product_id = #{productId}")
    List<SizeStock> listByProductId(Long productId);
} 